package com.woniuxy.entity.dto.stationPile;

import com.woniuxy.entity.po.stationPile.Station;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
public class StationMapInfoDTO {
    private Long id;
    private String stationName;
    private String stationNum;
    private String location;
    private BigDecimal longitude;
    private BigDecimal latitude;
    private Integer carPileCount;
    private Integer bikePileCount;
    private Integer busPileCount;
    private List<String> imgSrc;

    public StationMapInfoDTO(Station station) {
        BeanUtils.copyProperties(station, this);
    }
}
